package com.zretc.entity;

import org.springframework.stereotype.Component;

import java.util.List;
@Component
public class Movie {
    //电影id
    private String movieId;
    //电影名称
    private String movieName;
    //电影类型
    private String movieType;
    //电影时长
    private String playTime;
    //电影宣传首页照片
    private String moviePicture;
    //电影故事情节介绍
    private String storyIntroduce;
    //电影上映状态 0:热映，1即将上映
    private Integer showStatus;
    //电影票价
    private Integer moviePrice;
    // 导演id
    private String directorId;
    // 地区id
    private String areaId;
    //电影导演对象
    private Director director;
    //电影出品地对象
    private Area area;
    // 关联一个演员集合
    private List<Actor> actorList;
    // 关联一个影院集合
    private List<Cinema> cinemaList;
    // 关联一个订单集合
    private List<Order> orderList;

    public Movie() {
    }

    public Movie(String movieId, String movieName, String movieType, String playTime, String moviePicture, String storyIntroduce, Integer showStatus, Integer moviePrice, String directorId, String areaId, Director director, Area area) {
        this.movieId = movieId;
        this.movieName = movieName;
        this.movieType = movieType;
        this.playTime = playTime;
        this.moviePicture = moviePicture;
        this.storyIntroduce = storyIntroduce;
        this.showStatus = showStatus;
        this.moviePrice = moviePrice;
        this.directorId = directorId;
        this.areaId = areaId;
        this.director = director;
        this.area = area;
    }

    public Movie(String movieId, String movieName, String movieType, String playTime, String moviePicture, String storyIntroduce, Integer showStatus, Integer moviePrice, String directorId, String areaId, Director director, Area area, List<Actor> actorList) {
        this.movieId = movieId;
        this.movieName = movieName;
        this.movieType = movieType;
        this.playTime = playTime;
        this.moviePicture = moviePicture;
        this.storyIntroduce = storyIntroduce;
        this.showStatus = showStatus;
        this.moviePrice = moviePrice;
        this.directorId = directorId;
        this.areaId = areaId;
        this.director = director;
        this.area = area;
        this.actorList = actorList;
    }

    public Movie(String movieId, String movieName, String movieType, String playTime, String moviePicture, String storyIntroduce, Integer showStatus, Integer moviePrice, String directorId, String areaId, Director director, Area area, List<Actor> actorList, List<Cinema> cinemaList) {
        this.movieId = movieId;
        this.movieName = movieName;
        this.movieType = movieType;
        this.playTime = playTime;
        this.moviePicture = moviePicture;
        this.storyIntroduce = storyIntroduce;
        this.showStatus = showStatus;
        this.moviePrice = moviePrice;
        this.directorId = directorId;
        this.areaId = areaId;
        this.director = director;
        this.area = area;
        this.actorList = actorList;
        this.cinemaList = cinemaList;
    }

    public String getMovieId() {
        return movieId;
    }

    public void setMovieId(String movieId) {
        this.movieId = movieId;
    }

    public String getMovieName() {
        return movieName;
    }

    public void setMovieName(String movieName) {
        this.movieName = movieName;
    }

    public String getMovieType() {
        return movieType;
    }

    public void setMovieType(String movieType) {
        this.movieType = movieType;
    }

    public String getPlayTime() {
        return playTime;
    }

    public void setPlayTime(String playTime) {
        this.playTime = playTime;
    }

    public String getMoviePicture() {
        return moviePicture;
    }

    public void setMoviePicture(String moviePicture) {
        this.moviePicture = moviePicture;
    }

    public String getStoryIntroduce() {
        return storyIntroduce;
    }

    public void setStoryIntroduce(String storyIntroduce) {
        this.storyIntroduce = storyIntroduce;
    }

    public Integer getShowStatus() {
        return showStatus;
    }

    public void setShowStatus(Integer showStatus) {
        this.showStatus = showStatus;
    }

    public Integer getMoviePrice() {
        return moviePrice;
    }

    public void setMoviePrice(Integer moviePrice) {
        this.moviePrice = moviePrice;
    }

    public String getDirectorId() {
        return directorId;
    }

    public void setDirectorId(String directorId) {
        this.directorId = directorId;
    }

    public String getAreaId() {
        return areaId;
    }

    public void setAreaId(String areaId) {
        this.areaId = areaId;
    }

    public Director getDirector() {
        return director;
    }

    public void setDirector(Director director) {
        this.director = director;
    }

    public Area getArea() {
        return area;
    }

    public void setArea(Area area) {
        this.area = area;
    }

    public List<Actor> getActorList() {
        return actorList;
    }

    public void setActorList(List<Actor> actorList) {
        this.actorList = actorList;
    }

    public List<Order> getOrderList() {
        return orderList;
    }

    public void setOrderList(List<Order> orderList) {
        this.orderList = orderList;
    }

    public List<Cinema> getCinemaList() {
        return cinemaList;
    }

    public void setCinemaList(List<Cinema> cinemaList) {
        this.cinemaList = cinemaList;
    }

    @Override
    public String toString() {
        return "Movie{" +
                "movieId='" + movieId + '\'' +
                ", movieName='" + movieName + '\'' +
                ", movieType='" + movieType + '\'' +
                ", playTime='" + playTime + '\'' +
                ", moviePicture='" + moviePicture + '\'' +
                ", storyIntroduce='" + storyIntroduce + '\'' +
                ", showStatus=" + showStatus +
                ", moviePrice=" + moviePrice +
                ", directorId='" + directorId + '\'' +
                ", areaId='" + areaId + '\'' +
                ", director=" + director +
                ", area=" + area +
                ", actorList=" + actorList +
                ", cinemaList=" + cinemaList +
                ", orderList=" + orderList +
                '}';
    }
}